<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/6/27
 * Time: 17:40
 * Project name: PHPTEST
 * File name: 5.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

$init = curl_init("http://10.12.131.150/msr-periodical/%E4%BF%A1%E5%B0%81%E5%8F%91%E4%BB%B6%E4%BA%BA%E5%92%8C%E4%BF%A1%E5%A4%B4%E5%8F%91%E4%BB%B6%E4%BA%BA%E4%B8%8D%E5%8C%B9%E9%85%8D/");
curl_setopt($init,CURLOPT_RETURNTRANSFER,true);
$html = curl_exec($init);
curl_close($init);

//echo $html;
//preg_replace("","",$html);

//preg_match("/^(<div class=\"picchu msr-blog\">)(*)$(</div>)/",$html);
$h = '/<div class=\"picchu msr-blog\".*?>.*?<\/div>/ism';
preg_match( $h, $html, $title_matches );
echo ($title_matches[0]);
